<div class="page">
<?php
if($html->countUrl==1)
{
?>
    <style>
    .tourtypes{width:200px;height:310px;border:1px solid #dddddd;float:left;background: #FBFBFB}
    .tourtypes .tt2{font-size: 16px;height:30px;border-bottom: 1px solid #dddddd;margin-top:10px;padding-left: 25px;}
    .tourtypes a{display:block;border-bottom: 1px solid #dddddd;color: #5D471F;cursor: pointer;padding-left: 25px;line-height: 26px;font-size:15px}
    .tourtypesmsg{width:655px;border:1px solid #dddddd;border-left:0px;background: #FBFBFB;position: relative;}
    .tourtypesmsg .slide .tt2{margin:20px;font-size: 16px;font-weight: 600;}
    .tourtypesmsg .slide .msg{margin:20px;margin-bottom:0px !important}
    .tourtypesmsg .slide .seeall{padding-left: 20px;}
    .selected{background: #66E0E0}
    .tourtypesmsg .box1{width:250px;float:left;}
    .tourtypesmsg .box2{width:380px;float:right;margin-right:20px;}
    .butall{
        color:#6C3700;
        border: 1px solid #DDDDDD;
        display: block;
        font-weight: 600;
        height: 20px;
        margin-left: 126px;
        padding: 4px 10px 0px 10px;
        position: absolute;
    }
    a.nextbut{margin-left:180px !important}
    </style>
    <script>
    var Slider = Array();
    </script>
        <?php echo $html->getTitle('cName')?>   
        <div class="Content" align="center">
            <?php echo $html->getContent('cIntro')?>
            <div style="width:600px;">
                <div class="tourtypes">
                    <div class="tt2"><?php echo $html->getContent('cName')?></div>
                    <div id="tourtypestabs">
                    <?php
                    foreach($tourtypes as $i=>$tourtype)
                    {
                    ?>
                       <a><?php echo $tourtype['cName']?></a>
                    <?
                    }
                    ?>  
                    </div>  
                </div>
                <div class="tourtypesmsg" id="tourtypes_pages">
                    <?php
                    foreach($tourtypes as $i=>$tourtype)
                    {
                    ?>
                       <div class="slide">
                            <div class="box1">
                                <div class="tt2"><?php echo $tourtype['cName']?></div>
                                <div class="msg"><?php echo $tourtype['cDescription']?></div>
                                <div class="seeall">
                                    <a href="/<?php echo $html->urlRoot.'/'.$tourtype['cUrlString']?>"><b><?php echo __('See all journeys of this type')?></b></a>
                                </div>
                            </div>
                            <div class="box2">
                                <div id="slidetours_<?php echo $i?>" class="slides">
                                    <div class="slide">
                                    <?php
                                    $tours = ListTourByTypeId($tourtype['iId'],6);
                                    foreach($tours as $ii => $tour)
                                    {                    
                                        $img   = GetIntroImg($tour['cImage'],true,false);
                                        $link  = GetLinkTourById($tour['iId'],$tour['cUrlString']);
                                    ?>
                                    
                                    <a class="listtour" href="<?php echo $link?>" title="<?php echo $tour['cName']?>">
                                        <span class="img"><img src="<?php echo $img?>" width="155" alt="<?php echo $tour['cName']?>" /></span>
                                        <span class="tt"><?php echo $tour['cName']?>
                                        <span class="d"><?php echo $tour['cDays'].'<br />'.$tour['cPriceFrom']?></span></span>
                                        <span class="w"><?php echo $tour['cHighLights']?></span>
                                        <span class="l"></span>
                                        <span class="f"><?php echo __('Find out more')?></span>
                                    </a>
                                    <?php  
                                    if($ii%2==1 && $ii<count($tours)-1)
                                    {
                                        echo '</div><div class="slide">';
                                    }
                                    }
                                    ?>
                                    </div>
                                </div>  
                                <div style="padding-left: 40px;">
                                    <a class="prevbut preva cpointer" onclick="Slider[<?php echo $i?>].goFrame(-1)">Previous</a>
                                    <a class="butall cpointer" href="/<?php echo $html->urlRoot.'/'.$tourtype['cUrlString']?>">All</a>
                                    <a class="nextbut nexta cpointer" onclick="Slider[<?php echo $i?>].goFrame(1)">Next</a>
                                </div>                              
                                <script type="text/javascript">
                                (Slider[<?php echo $i?>]=new TrAnami).init({id:'slidetours_<?php echo $i?>',w:360,h:270,type:2,space:0});
                                </script>
                            </div>
                        </div>
                    <?
                    }
                    ?>  
                    
                </div>
            </div>
            <div class="clear"></div>
        </div>
    <script type="text/javascript">(tourtypetb=new TrAnami).init({id:'tourtypes_pages',w:655,h:310,type:1,space:0,tabs:'tourtypestabs'})</script>
<?
}else
{
    echo $html->getTitle('cName');
    ?>
    <div class="Contentsub">
        <?php echo $html->getContent('cIntro')?>
    </div>
   <div id="ajaxpage">
        <?php echo showSplitPage()?>
        <?php echo $allTour?>    
        <?php echo showSplitPage()?>
    </div>

<?
}
?>  

</div>